#ifndef SAFEBROWSING_H
#define SAFEBROWSING_H

#include <QObject>
#include <QUrl>

#include "common.h"

#define BLACKLIST_URL "http://sb.google.com/safebrowsing/update?client=api&apikey=ABQIAAAAOSkL65AhfkJMbxLzuctF1BRPwlPRP_rCY2NpiFSj6XEUEl4Lqg&version=goog-black-hash:1:-1"
#define MALWARE_URL "http://sb.google.com/safebrowsing/update?client=api&apikey=ABQIAAAAOSkL65AhfkJMbxLzuctF1BRPwlPRP_rCY2NpiFSj6XEUEl4Lqg&version=goog-malware-hash:1:-1"

#define FS_BROWSINGPROTECTION "http://browsingprotection.f-secure.com/swp/result?url="
#define FS_ID "url_rating_status"

#define NORTON_SAFEWEB "http://safeweb.norton.com/report/show?url="
#define NORTON_ID "rating_icon_and_text"

class SafeBrowsing : public QObject
{
    Q_OBJECT
public:
    explicit SafeBrowsing(QObject *parent = 0);

signals:
    void urlResult(QUrl url,bool safe);

public slots:
    void checkUrl(QUrl);

};

#endif // SAFEBROWSING_H
